<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>


<body>
    <ul id="news">
        <li>添加列表条目</li>
        <li>添加列表条目</li>
    </ul>
</body>
<script>
    //给父元素添加事件在派发给子元素
    var nUl = document.querySelector('ul');
    nUl.onclick = function (e) {
        e.target.style.color = 'orange';
    }

</script>

</html>